package com.lframework.xingyun.basedata.vo.member;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class CouponGrantVo {

    /**
     * 是否发放全部会员
     */
    @NotNull(message = "是否发放全部会员不能为空")
    @ApiModelProperty("是否发放全部会员")
    private Boolean allMember;

    /**
     * 会员id
     */
    @ApiModelProperty("会员id")
    private List<String> memberId;

    /**
     * 卡券信息
     */
    @NotEmpty(message = "卡券信息不能为空")
    @ApiModelProperty("卡券信息")
    private List<CouponItemVo> couponItem;
}
